Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Runtime Invocation Functions /


JMOpenSession

Instantiates a Java runtime session and returns a session pointer.

OSStatus JMOpenSession (
                     JMSessionRef* session,
                     const JMSecurityOptions* security,
                     const JMSessionCallbacks* callbacks,
                     JMClientData data);
session
A pointer to a Java runtime session. On return this parameter is the allocated session.
security
A pointer to a security options structure. See "Session Security Options Structure" (page 45) for more information.
callbacks
A pointer to a session callbacks structure. See "Session Callbacks Structure" (page 44) for more information.
data
Any optional client-specific data.
function result
A result code. See "JManager Result Codes" (page 108) for a list of result codes that JManager may return in this field.
DISCUSSION
A valid session pointer has a value other than null. If not enough system memory exists to instantiate a session, JMOpenSession returns memFullErr.

SEE ALSO
"Creating a Java Runtime Session" (page 6).

The JMCloseSession function (page 56).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
23 APR 1997